﻿if (typeof (Seq) == 'undefined') Seq = new Object();

if (typeof (Seq.State) == 'undefined') Seq.State = new Object();

Seq.State.GetCurrentSessionID = function() {
	var id = ''; 
	var m = /SESSION=([a-z0-9]+)/ig.exec(location.hash);
	if (m && m.length > 1)
		id = m[1];
	return id;
}

Seq.State.GetCurrentPatternID = function() {
	var id = ''; 
	var m = /PATTERN=([a-z0-9]+)/ig.exec(location.hash);
	if (m && m.length > 1)
		id = m[1];
	return id;
}

Seq.State.GetCurrentInstrumentID = function() {
	var id = ''; 
	var m = /INSTRUMENT=([a-z0-9]+)/ig.exec(location.hash);
	if (m && m.length > 1)
		id = m[1];
	return id;
}

